<template>
	<div class="tableWrap" :class="setting">
		<slot />
	</div>
</template>

<script>
	export default {
		props: {
			setting: {
				type: Array,
				default () {
					return [];
				}
			}
		},
		created() {

		},
		data() {
			return {
				meta: {
					title: "表格式表单"
				}
			}
		},
	}
</script>
<style lang="scss" scoped>
	.tableWrap {
		table {
			border-collapse: collapse;
			margin: 0px;
			vertical-align: middle;
			background-color: rgb(255, 255, 255);
			width: 100%;
			border: solid rgb(225, 230, 235);
			border-width: 1px 0px 0px 1px;
		}

		.td {
			border: solid rgb(225, 230, 235);
			border-width: 0px 1px 1px 0px;
			padding: 10px 0px;
			vertical-align: middle;
		}


		code {
			background: url(./bt.gif) no-repeat 0 5px;
			padding-left: 20px;
			margin-left: 15px;
			color: #656c7e;
			display: inline-block;
			font: 400 12px/26px 'Microsoft Yahei';
		}

		tr {
			background: #fff;
		}

		.lt {
			display: flex;
			align-items: center;
		}

		tr td:nth-child(1) {
			vertical-align: middle;
			padding-top: 5px;
			padding-bottom: 5px;
			background-color: #fff;
			font-size: 14px;
			line-height: 48px;
			color: #1a1a1a;
			text-align: right;
			padding-right: 20px;
			width: 118px;
		}


		tr td:nth-child(2) {
			vertical-align: middle;
			padding-top: 5px;
			padding-bottom: 5px;
			padding-left: 10px;
			font-size: 14px;
		}

		::v-deep .el-form-item--mini.el-form-item,
		::v-deep .el-form-item--small.el-form-item {
			margin: 0;
		}
	}

	.width200 tr td:nth-child(1) {
		width: 200px;
	}
</style>